Optimal. Leaf size=58 \[ \frac {2 b p x}{3 a}-\frac {2 b^{3/2} p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{3 a^{3/2}}+\frac {1}{3} x^3 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 58, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2505, 199, 327,
211} \begin {gather*} -\frac {2 b^{3/2} p \text {ArcTan}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{3 a^{3/2}}+\frac {1}{3} x^3 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )+\frac {2 b p x}{3 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 199
Rule 211
Rule 327
Rule 2505
Rubi steps
\begin {align*} \int x^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \, dx &=\frac {1}{3} x^3 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )+\frac {1}{3} (2 b p) \int \frac {1}{a+\frac {b}{x^2}} \, dx\\ &=\frac {1}{3} x^3 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )+\frac {1}{3} (2 b p) \int \frac {x^2}{b+a x^2} \, dx\\ &=\frac {2 b p x}{3 a}+\frac {1}{3} x^3 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )-\frac {\left (2 b^2 p\right ) \int \frac {1}{b+a x^2} \, dx}{3 a}\\ &=\frac {2 b p x}{3 a}-\frac {2 b^{3/2} p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{3 a^{3/2}}+\frac {1}{3} x^3 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.00, size = 47, normalized size = 0.81 \begin {gather*} \frac {2 b p x \, _2F_1\left (-\frac {1}{2},1;\frac {1}{2};-\frac {b}{a x^2}\right )}{3 a}+\frac {1}{3} x^3 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int x^{2} \ln \left (c \left (a +\frac {b}{x^{2}}\right )^{p}\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.49, size = 48, normalized size = 0.83 \begin {gather*} \frac {1}{3} \, x^{3} \log \left ({\left (a + \frac {b}{x^{2}}\right )}^{p} c\right ) - \frac {2}{3} \, b p {\left (\frac {b \arctan \left (\frac {a x}{\sqrt {a b}}\right )}{\sqrt {a b} a} - \frac {x}{a}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 141, normalized size = 2.43 \begin {gather*} \left [\frac {a p x^{3} \log \left (\frac {a x^{2} + b}{x^{2}}\right ) + a x^{3} \log \left (c\right ) + b p \sqrt {-\frac {b}{a}} \log \left (\frac {a x^{2} - 2 \, a x \sqrt {-\frac {b}{a}} - b}{a x^{2} + b}\right ) + 2 \, b p x}{3 \, a}, \frac {a p x^{3} \log \left (\frac {a x^{2} + b}{x^{2}}\right ) + a x^{3} \log \left (c\right ) - 2 \, b p \sqrt {\frac {b}{a}} \arctan \left (\frac {a x \sqrt {\frac {b}{a}}}{b}\right ) + 2 \, b p x}{3 \, a}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 133 vs.
\(2 (54) = 108\).
time = 11.00, size = 133, normalized size = 2.29 \begin {gather*} \begin {cases} \frac {x^{3} \log {\left (0^{p} c \right )}}{3} & \text {for}\: a = 0 \wedge b = 0 \\\frac {2 p x^{3}}{9} + \frac {x^{3} \log {\left (c \left (\frac {b}{x^{2}}\right )^{p} \right )}}{3} & \text {for}\: a = 0 \\\frac {x^{3} \log {\left (a^{p} c \right )}}{3} & \text {for}\: b = 0 \\\frac {x^{3} \log {\left (c \left (a + \frac {b}{x^{2}}\right )^{p} \right )}}{3} + \frac {2 b p x}{3 a} - \frac {b^{2} p \log {\left (x - \sqrt {- \frac {b}{a}} \right )}}{3 a^{2} \sqrt {- \frac {b}{a}}} + \frac {b^{2} p \log {\left (x + \sqrt {- \frac {b}{a}} \right )}}{3 a^{2} \sqrt {- \frac {b}{a}}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 6.09, size = 63, normalized size = 1.09 \begin {gather*} \frac {1}{3} \, p x^{3} \log \left (a x^{2} + b\right ) - \frac {1}{3} \, p x^{3} \log \left (x^{2}\right ) + \frac {1}{3} \, x^{3} \log \left (c\right ) - \frac {2 \, b^{2} p \arctan \left (\frac {a x}{\sqrt {a b}}\right )}{3 \, \sqrt {a b} a} + \frac {2 \, b p x}{3 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.24, size = 44, normalized size = 0.76 \begin {gather*} \frac {x^3\,\ln \left (c\,{\left (a+\frac {b}{x^2}\right )}^p\right )}{3}-\frac {2\,b^{3/2}\,p\,\mathrm {atan}\left (\frac {\sqrt {a}\,x}{\sqrt {b}}\right )}{3\,a^{3/2}}+\frac {2\,b\,p\,x}{3\,a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________